package org.orcas.kocl.compiler.handlers;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.handlers.HandlerUtil;
import org.orcas.kocl.compiler.core.KOCLCompiler;

public class MenuHandler extends AbstractHandler {
	
	public MenuHandler() {
	}

	public Object execute(ExecutionEvent event) throws ExecutionException {
		IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);
		
		KOCLCompiler koclCompiler = new KOCLCompiler();
		koclCompiler.test();
		
		return null;
	}
}
